﻿using Google.Protobuf;
using Server.Framework.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.Message.Response
{
    /// <summary>
    /// Author: Leil
    /// Description: 类描述
    /// CreateTime: 2020/5/13 12:31:32
    /// </summary>
    class OperationResp : ResponseBaseMessage
    {

        public OperationResp(int msgId):base(msgId)
        {

        }

        public int Code { get; set; }
        public int OptType { get; set; }
        public string Content { get; set; }

        public override byte[] Serialize()
        {
            OptResp msg = new OptResp
            {
                Code = Code,
                OptType = OptType,
                Content = Content
            };
            return msg.ToByteArray();
        }
    }
}
